{extend name="admin@base"/}
{block name="resources"}{/block}
{block name='second_menu'}
{notempty name="$menu[2]"}
<ul class="layui-nav nc-nav">
    {foreach name="$menu[2]" item="second_menu"}
    <li class="layui-nav-item {$second_menu['selected']}">
        <a href="{$second_menu['url']}" {$second_menu['target']}>{$second_menu['title']}</a>
    </li>
    {/foreach}
</ul>
{/notempty}
{/block}

{block name='crumbs'}{/block}
{block name="main"}
<table id="sms_list" lay-filter="sms_list"></table>
<script type="text/html" id="status">
    {{#  if(d.status == 1){ }}
        成功
    {{#  } else if(d.status == -1) { }}
        失败
    {{#  } else { }}
        待发送
    {{#  } }}

</script>

<script type="text/html" id="operation">
    {{#  if(d.status != 1 && d.site_id  == 0){ }}
        <a class="default" lay-event="send_sms">重新发送</a>
    {{#  } }}
</script>

<script type="text/html" id="send_account">
    <span>{{d.account}}</span>
</script>

<script type="text/html" id="sms_template">
    <div>
        {{#  if(d.type_name != ''){ }}<label>发送类型:<span>{{ d.type_name }}</span></label><br />{{#  } }}
        {{#  if(d.code != ''){ }}<label>短信模板:<span>{{d.code }}</span></label><br />{{#  } }}
        {{#  if(d.sign != ''){ }}<label>短信签名:<span>{{d.sign }}</span></label>{{#  } }}
    </div>
</script>


<script type="text/html" id="create_time">
    <span>{{ nc.time_to_date(d.create_time) }} </span>
</script>

{/block}

{block name="script"}
<script src="ADDON_NS_SMS_JS/sms_list.js"></script>
{/block}